// Created by zyq on 2025/3/30.
#include "iostream"
using namespace std;

class Resume {
private:
    string name;
    string sex;
    string age;
    string timeArea;
    string company;

public:
    Resume(string name) {
        this->name = name;
    }
    void setPersonalInfo(string sex, string age) {
        this->sex = sex;
        this->age = age;
    }
    void setWorkExperience(string timeArea, string company) {
        this->timeArea = timeArea;
        this->company = company;
    }
    void display() {
        cout << "姓名：" << name << endl;
        cout << "性别：" << sex << endl;
        cout << "年龄：" << age << endl;
        cout << "工作经历：" << timeArea << " " << company << endl;
    }

//    Object* clone() {
//        return (Object)(*this);
//    }
};

//class ConcreatePrototype1: public Prototype {
//public:
//    ConcreatePrototype1(string id): Prototype(id) {}
//    Prototype* clone() {
//        return new ConcreatePrototype1(*this);
//    }
//};